/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thienphuc.patient.bo;

import java.util.List;
import thienphuc.patient.dto.BenhAn;
import thienphuc.patient.dto.NhanVien;
import thienphuc.patient.dto.ThongTinBenhNhan;

/**
 *
 * @author QuocDat
 */
public interface BenhAnBO {
    
    /**
     * Get all BenhAn
     * @return
     * @throws Exception 
     */
    List<BenhAn> getAll() throws Exception;
    
    /**
     * Get BenhAn by MaBenhAn
     * @param maBenhAn
     * @return
     * @throws Exception 
     */
    BenhAn getById(int maBenhAn) throws Exception;
    
    /**
     * Get BenhAn by ThongTinBenhNhan
     * @param thongTinBenhNhan
     * @return
     * @throws Exception 
     */
    List<BenhAn> getByThongTinBenhNhan(ThongTinBenhNhan thongTinBenhNhan) throws Exception;
    
    /**
     * Get BenhAn by NhanVien
     * @param nhanVien
     * @return
     * @throws Exception 
     */
    List<BenhAn> getByNhanVien(NhanVien nhanVien) throws Exception;
    
    /**
     * Insert BenhAn
     * @param benhAn
     * @return
     * @throws Exception 
     */
    boolean insertBenhAn(BenhAn benhAn) throws Exception;
    
    /**
     * Update BenhAnw
     * @param benhAn
     * @return
     * @throws Exception 
     */
    boolean updateBenhAn(BenhAn benhAn) throws Exception;
    
}
